<template>
  <div class="father">
    <h3>父组件</h3>
    <!-- v-model用在html标签上 -->
    <!--<input type="text" v-model="username" />-->
    <!-- v-model 用在组件标签上-->
    <!--<AtguiguInput v-model="username" />-->
    <AtguiguInput
      :modelValue="username"
      @update:modelValue="username = $event"
    />
  </div>
</template>

<script setup lang="ts" name="Father">
import AtguiguInput from "./AtguiguInput.vue";
import { ref } from "vue";
let username = ref("zhangsan");
</script>

<style scoped>
.father {
  padding: 20px;
  background-color: rgb(165, 164, 164);
  border-radius: 10px;
}
</style>
